import request from '@/utils/request'

// 价格设置分页列表
export function getPriceSettingPage(params) {
  return request({
    url: '/api/v1/price-seting/page',
    method: 'get',
    params
  })
}

// 获取价格设置表单数据
export function getPriceSettingForm(id) {
  return request({
    url: `/api/v1/price-seting/${id}/form`,
    method: 'get'
  })
}

// 新增价格设置
export function addPriceSetting(data) {
  return request({
    url: '/api/v1/price-seting',
    method: 'post',
    data
  })
}

// 修改价格设置
export function updatePriceSetting(id, data) {
  return request({
    url: `/api/v1/price-seting/${id}`,
    method: 'put',
    data
  })
}

// 删除价格设置
export function deletePriceSetting(ids) {
  return request({
    url: `/api/v1/price-seting/${ids}`,
    method: 'delete'
  })
} 